{% block content %}
<h3>图片列表</h3>
<ul>
{% if pic_list %}
    {% for picture in pic_list %}
    <li><a href="{% url 'pic_upload:pic_detail' picture.id %}">{{ picture.title }}</a>
        - {{ picture.date| date:"Y-m-j" }}</li>
    {% endfor %}
{% else %}
    <li>还没有上传新图片</li>
{% endif %}
</ul>
<p><a href="{% url 'pic_upload:pic_upload' %}">上传新图片</a></p>
{% endblock %}